New Functions in Week 3

geom_density

{GGPLOT2}

Generates a density plot

get_mode

{rstatix}

Compute the mode in a given vector.

theme_bw

{GGPLOT2}

A black and white ggplot theme

xlab

{GGPLOT2}

Label the x axis (ggplot)

set.seed

{base}

Initialise a pseudorandom number generator.

ylab

{GGPLOT2}

Label the y axis (ggplot)

unique

{base}

get unique elements

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

which.max

{base}

return index of the largest value in a vector

round

{base}

Rounds numbers

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

matrix

{base}

Creates a matrix from the given set of values.

tabulate

{base}

Counts the number of times each integer occurs in an integer-only vector

sample

{base}

Takes a sample of the specified size

order

{base}

Get indexes that will sort a vector

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

rnorm

{base}

Generate random numbers from a normal distribution

runif

{stats}

Draws ranndom numbers from the uniform distribution

rbeta

{stats}

Beta Random Number Generating Function

The end!